import Layout from '../layout/index.vue'

export default [
  {
    path: '/',
    name: 'root',
    component: Layout,
    redirect: 'mac',
    children: [
      {
        path: 'updateList',
        name: 'updateList',
        component: () => import('@renderer/views/updateList/index.vue'),
        meta: {
          title: '更新列表'
        }
      },
      {
        path: 'list',
        name: 'list',
        component: () => import('@renderer/views/list/index.vue'),
        meta: {
          title: '列表'
        }
      },
      {
        path: 'detail',
        name: 'detail',
        component: () => import('@renderer/views/detail/index.vue'),
        meta: {
          title: '详情'
        }
      },
      {
        path: 'mac',
        name: 'mac',
        component: () => import('@renderer/views/mac/index.vue'),
        meta: {
          title: 'mac地址'
        }
      }
    ]
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@renderer/views/404/index.vue'),
    meta: {
      title: '404界面'
    }
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'any',
    redirect: '/404'
  }
]
